projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e5be82
)
net/sntp.c: move ifdef into Makefile COBJS-$(...)
author
Mike Frysinger
<
[email protected]
>
Fri, 6 Feb 2009 02:04:47 +0000
(21:04 -0500)
committer
Ben Warren
<
[email protected]
>
Tue, 10 Feb 2009 06:53:54 +0000
(22:53 -0800)
Signed-off-by: Mike Frysinger <
[email protected]
>
Signed-off-by: Ben Warren <
[email protected]
>
net/Makefile
patch
|
blob
|
history
net/sntp.c
patch
|
blob
|
history
diff --git
a/net/Makefile
b/net/Makefile
index 0eee330cfe3f01cdb89031bdf22f01d646c7cb03..d3418742502e463c6ee96e8d342a3d127328b00b 100644
(file)
--- a/
net/Makefile
+++ b/
net/Makefile
@@
-33,7
+33,7
@@
COBJS-y += bootp.o
COBJS-y += rarp.o
COBJS-y += eth.o
COBJS-y += nfs.o
-COBJS-
y
+= sntp.o
+COBJS-
$(CONFIG_CMD_SNTP)
+= sntp.o
COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c)
diff --git
a/net/sntp.c
b/net/sntp.c
index 425d35edd884e05b7a950de505e3560244ca65dd..404587e80ea686372026ce578f1c0ea2beb37c29 100644
(file)
--- a/
net/sntp.c
+++ b/
net/sntp.c
@@
-12,8
+12,6
@@
#include "sntp.h"
-#if defined(CONFIG_CMD_NET) && defined(CONFIG_CMD_SNTP)
-
#define SNTP_TIMEOUT 10000UL
static int SntpOurPort;
@@
-88,5
+86,3
@@
SntpStart (void)
SntpSend ();
}
-
-#endif